package com.dd.service;

import com.dd.entity.PurchaseOrderDetails;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.entity.PurchaseOrderDetailsProductsVO;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 * 采购明细表 记录每个采购订单的具体商品信息。 服务类
 * </p>
 *
 * @author dhd
 * @since 2024-10-21
 */
public interface IPurchaseOrderDetailsService {

    //添加采购订单明细
    void insertBatch(List<PurchaseOrderDetails> purchaseOrderDetails);

    //根据订单号和供应商id查询采购订单明细
    List<PurchaseOrderDetailsProductsVO> selectAllByOrderIdAndSupplierId(String orderId, Integer supplierId);

    //根据订单号查询采购订单明细
    List<PurchaseOrderDetails> selectProductIdFromOrderId(String orderId);

}
